import os
os.system(r'pip install flask')
os.system(r'pip install flask_sqlalchemy')
os.system(r'pip install flask_migrate')
os.system(r'pip install flask_script')
os.system(r'pip install flask_wtf')
os.system(r'pip install flask_login')
os.system(r'pip install wtforms')
os.system(r'pip install flask-ckeditor')
os.system(r'pip install cryptography') #不装这个连不上数据库

#配置数据库，先把migrations文件删除
os.system(r'python manage.py db init')
os.system(r'python manage.py db migrate')
os.system(r'python manage.py db upgrade')

#运行此脚本一键安装需要的包